<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/html-base.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/train.css"/>
    <script type="text/javascript" src="../../script/newresize.js"></script>
    <script type="text/javascript" src="../../script/utils/payUtils.js"></script>
</head>
<body>
<div id="current_page" class="detcontainer">
    <a class="mui-icon mui-icon-left-nav detback" onclick="backClick(event)"></a>
    <div class="detwrapper">
        <div class="det-top-img"><img id="class_image" src="../../image/default-pic02.png"/></div>
        <div class="det-price-box">
            <div class="det-part1">
                <span id="train_fee" class="price-txt">￥12800.00</span>
                <span onclick="onShareClick()" class="icon-share"><span>分享</span></span>
            </div>
        </div>
        <div class="det-centercont">
            <div class="train-topinfo">
                <h1 id="class_name" class="train-info-name"></h1>
                <p><span id="apply_time">报名时间：</span></p>
                <p><span id="train_time">培训时间：</span></p>
                <p><span id="train_address">培训地点：</span></p>
            </div>
            <div class="train-ceninfo">
                <div class="titbox">培训简介</div>
                <div id="train_brief" class="train-jianjie train-txt"></div>
                <div id="train_plan_title" class="mintitbox" hidden="hidden">培训计划</div>
                <div id="train_plan" class="train-txt" hidden="hidden">
                    <p><strong>培训目标：</strong></p>
                    <p>了解大数据技术在智慧物流、智慧供应链等领域的应用现状；</p>
                    <p>知道当今企业对人才的能力需求；</p>
                    <p>熟悉数据挖掘分析的知识结构与课程体系；</p>
                    <p>
                        掌握《新零售时代的仓储货位管理》、《数据驱动下的供应链优化——商品需求》、《运输企业运营网络可视化分析》、《基于数据挖掘的客户群定位及差异化精准营销》、《物流行业人才需求预测》等实验案例；</p>
                    <p>学会将数据挖掘分析知识与传统教学课程相结合,并能够设计课程案例；</p>
                    <p>
                        本次培训提供课件、案例实验指导手册、数据、工具资源、《大数据分析与挖掘》教材及线上MOOC、历届大数据竞赛优秀作品案例等全套教学资源,让参加培训的老师能够具备既有课程拓展或者新开一门大数据分析与挖掘实验课的能力。</p>
                    <p><strong>培训对象：</strong></p>
                    <p>全国高校经管类相关专业教师；</p>
                </div>
                <div id="teachers_describe_title" class="mintitbox" hidden="hidden">师资介绍</div>
                <div id="teachers_describe" class="train-txt" hidden="hidden">
                    <p>大数据/人工智能领域校企专家；</p>
                    <p>Logis 高层与教学团队；</p>
                </div>
                <div id="train_spot_title" class="mintitbox" hidden="hidden">培训亮点</div>
                <div id="train_spot" class="train-txt" hidden="hidden">
                    <p>
                        本次培训模块设计涵盖了货运代理行业的核心技能要求，是货运代理项目的一次全面培训，共涉及货运代理市场开发、货运代理业务报价处理、货运代理运输业务、货运代理业务成本费用核算、货运代理业务操作、客户关系维护等模块，并安排到知名货运代理企业实际参观考察交流，深入跟岗学习。</p>
                    <p>每个模块按照培训、试做、分析3种方式进行。</p>
                </div>
                <div id="train_tips_title" class="mintitbox" hidden="hidden">温馨提示</div>
                <div id="train_tips" class="train-txt" hidden="hidden">
                    <p>
                        本次培训模块设计涵盖了货运代理行业的核心技能要求，是货运代理项目的一次全面培训，共涉及货运代理市场开发、货运代理业务报价处理、货运代理运输业务、货运代理业务成本费用核算、货运代理业务操作、客户关系维护等模块，并安排到知名货运代理企业实际参观考察交流，深入跟岗学习。</p>
                    <p>每个模块按照培训、试做、分析3种方式进行。</p>
                </div>
                <div id="course_list_title" class="titbox" style="background-size: 3.4rem 0.8rem;" hidden="hidden">
                    在线课程赠送
                </div>
                <div id="course_list_div" class="listwrapper train-txt" hidden="hidden">
                    <ul id="course_list" class="listbox listbox2">
                        <!-- <li>
                            <a href="javascript:;">
                                <div class="u-img"><img src="../../image/default-pic01.png"/></div>
                                <div class="u-txt">
                                    <h3>挡不住的跨境电商时代</h3>
                                    <p>本培训将线上和线下，理论知识和专业技能有机结合在一起，并平结合在一起，并平</p>
                                    <div><p class="marktxt">祁振国  17课时</p> <span class="pricetxt">￥380.00</span></div>
                                </div>
                            </a>
                            <div class="buybox"><a href="javascript:;">我要购买</a></div>
                        </li>
                        <li>
                            <a href="javascript:;">
                                <div class="u-img"><img src="../../image/default-pic01.png"/></div>
                                <div class="u-txt">
                                    <h3>挡不住的跨境电商时代</h3>
                                    <p>本培训将线上和线下，理论知识和专业技能有机结合在一起，并平结合在一起，并平</p>
                                    <div><p class="marktxt">祁振国  17课时</p> <span class="pricetxt">￥380.00</span></div>
                                </div>
                            </a>
                            <div class="buybox"><a href="javascript:;">我要购买</a></div>
                        </li> -->
                    </ul>
                </div>
                <div id="train_content_title" class="titbox" hidden="hidden">培训内容</div>
                <div id="train_content" class="train-txt" hidden="hidden">
                    <table border="0" cellspacing="0" cellpadding="0" class="train-tab">
                        <tr>
                            <th class="w1">日期</th>
                            <th class="w2">时间</th>
                            <th class="w3">主题</th>
                            <th>内容</th>
                            <th class="w5">主讲人</th>
                        </tr>
                        <tr>
                            <td rowspan="3" class="w1">4月11日</td>
                            <td class="w2">9:00-9:30</td>
                            <td>开班仪式</td>
                            <td><p>领导讲话，介绍培训内容、流程安排等</p></td>
                            <td class="w5">李宇航</td>
                        </tr>
                        <tr>
                            <td class="w2">9:30-12:00</td>
                            <td>大数据背景下企业&人才的“求生之道”</td>
                            <td>
                                <p>1.大数据/人工智能前沿科技；</p>
                                <p>2.大数据分析挖掘在企业中的应用；</p>
                                <p>3.大数据时代需要什么样的人？</p>
                                <p>4.未来哪些岗位将被人工智能所取代？</p>
                            </td>
                            <td class="w5">企业专家</td>
                        </tr>
                        <tr>
                            <td class="w2">14:00-17:30</td>
                            <td>数据挖掘理论与技术</td>
                            <td>
                                <p>1.大数据、云计算、人工智能的关系；</p>
                                <p>2.数据挖掘概述；</p>
                                <p>3.数据挖掘的任务和方法；</p>
                                <p>4.国内外数据挖掘的先进技术。</p>
                            </td>
                            <td class="w5">高校教授</td>
                        </tr>
                        <tr>
                            <td rowspan="2" class="w1">4月12日</td>
                            <td class="w2">9:30-12:00</td>
                            <td>运输企业营销网络可视化分析</td>
                            <td>
                                <p>1.理论：多维数据分析、运营网络可视化分析；</p>
                                <p>2.工具：大数据多维分析平台（MAP）；</p>
                                <p>3.数据：运输企业运营数据。</p>
                            </td>
                            <td class="w5">Logis教学团队</td>
                        </tr>
                        <tr>
                            <td class="w2">14:00-17:30</td>
                            <td>新零售时代的仓储货位管理</td>
                            <td>
                                <p>1.理论：关联规则、EIQ、ABC分类；</p>
                                <p>2.工具：大数据挖掘平台（PMT）；</p>
                                <p>3.数据：仓储作业数据。</p>
                            </td>
                            <td class="w5">高校教授</td>
                        </tr>
                        <tr>
                            <td rowspan="2" class="w1">4月13日</td>
                            <td class="w2">9:30-12:00</td>
                            <td>基于数据挖掘的客户群定位及差异化精准营销</td>
                            <td>
                                <p>1.理论：数据挖掘、K-means聚类、RFM模型；</p>
                                <p>2.工具：大数据挖掘平台（PMT）；</p>
                                <p>3.数据：某企业客户数据。</p>
                            </td>
                            <td class="w5">Logis教学团队</td>
                        </tr>
                        <tr>
                            <td class="w2">14:00-17:30</td>
                            <td>数据驱动下的供应链优化--商品需求预测</td>
                            <td>
                                <p>1.理论：神经网络、线性回归、随机森林；</p>
                                <p>2.工具：大数据挖掘平台（PMT）；</p>
                                <p>3.数据：智能分仓数据。</p>
                            </td>
                            <td class="w5">高校教授</td>
                        </tr>
                        <tr>
                            <td rowspan="2" class="w1">4月14日</td>
                            <td class="w2">9:30-12:00</td>
                            <td>物流行业人才需求预测</td>
                            <td>
                                <p>1.理论：主成分分析、数据可视化分析；</p>
                                <p>2.工具：大数据挖掘平台（PMT）&大数据多维分析平台（MPA）；</p>
                                <p>3.数据：某企业客户数据。</p>
                            </td>
                            <td class="w5">Logis教学团队</td>
                        </tr>
                        <tr>
                            <td class="w2">14:00-17:30</td>
                            <td>企业参观</td>
                            <td>
                                <p>1.大数据技术在企业的落地应用；</p>
                                <p>2.物流专业毕业生在企业的工作岗位及工作内容</p>
                            </td>
                            <td class="w5">高校教授</td>
                        </tr>
                    </table>
                </div>
                <div id="train_arrange_title" class="titbox" hidden="hidden">培训安排</div>
                <div id="train_arrange" class="train-txt" hidden="hidden">
                    <p class="item"><span>报名时间：</span>2018年12月14日</p>
                    <p class="item"><span>报到时间：</span>4月10日 全天</p>
                    <p class="item"><span>培训地点：</span>北京长风物流学院(北京市朝阳区十里堡八里庄东里6号院）</p>
                    <p class="item"><span>培训费用：</span>2800元/人</p>
                    <p class="item"><span>食宿安排：</span>统一安排，食宿自理</p>
                    <p>注：培训费用含餐费，但不含住宿费，培训会务组帮学员统一预定住宿酒店，学员自由选择是否入住。</p>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="detbotcont1" class="detbotcont" hidden="hidden">
    <div class="botwrapper">
        <a class="bot-phone" id="train_mobile" href="tel:13764567708">
            <span class="bot-icon icon-service"></span>
            <span class="bot-label">客服</span>
        </a>
        <div class="bot-sc">
            <span class="bot-icon icon-storeup"></span>
            <span class="bot-label">收藏</span>
        </div>
        <div class="bot-baom">
            <a id="signup" href="javascript:;" value="0" onclick="payClick()">我要报名</a>
        </div>
    </div>
</div>
<div id="detbotcont2" class="detbotcont" hidden="hidden">
    <div class="botwrapper">
        <a class="bot-contact" href="tel:13764567708">
            <span class="mui-icon mui-icon-phone"></span>
            <span class="bot-label">联系会务组</span>
        </a>
    </div>
</div>
<div class="shareshade"></div>
<div id="share_div" class="share-div" hidden="hidden">
    <div id="share_img_div" class="share-codecont">
        <div class="sharecodebox"><img id="share_img" class="share-img" src="../../image/default-pic01.png" alt="">
        </div>
        <div class="sharecodetxt">扫码查看：
            <div id="qrcode_img" class="erweima">
            </div>
            <!-- <img id="qrcode_img" src="../../image/img_code.png" alt="" class="erweima"> -->
        </div>
    </div>
</div>
<div class="sharelay">
    <span class="share-tit">分享至</span>
    <div class="sharewrapper">
        <div class="sharecont">
            <div class="sharetr">
                <div onclick="setupScreenCapture(0);" class="sharetd">
                    <div class="shareicon"><img src="../../image/share-wx.png" alt=""></div>
                    <p class="sharetxt">微信好友</p>
                </div>
                <div onclick="setupScreenCapture(1);" class="sharetd">
                    <div class="shareicon"><img src="../../image/share-pyq.png" alt=""></div>
                    <p class="sharetxt">朋友圈</p>
                </div>
                <div onclick="setupScreenCapture(2);" class="sharetd">
                    <div class="shareicon"><img src="../../image/share-qq.png" alt=""></div>
                    <p class="sharetxt">QQ好友</p>
                </div>
                <div onclick="setupScreenCapture(3);" class="sharetd">
                    <div class="shareicon"><img src="../../image/share-qqzone.png" alt=""></div>
                    <p class="sharetxt">QQ空间</p>
                </div>
                <div onclick="setupScreenCapture(4);" class="sharetd">
                    <div class="shareicon"><img src="../../image/share-wb.png" alt=""></div>
                    <p class="sharetxt">微博</p>
                </div>
            </div>
            <div class="sharetr">
                <div onclick="setupScreenCapture(5);" class="sharetd" id="copylink">
                    <div class="shareicon"><img src="../../image/share-link.png" alt=""></div>
                    <p class="sharetxt">复制链接</p>
                </div>
                <div onclick="setupScreenCapture(6);" class="sharetd" id="downimg">
                    <div class="shareicon"><img src="../../image/share-down.png" alt=""></div>
                    <p class="sharetxt">保存图片</p>
                </div>
            </div>
        </div>
    </div>
    <div onclick="onCancelClick();" class="share-cancel">取消</div>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/jquery.min.js"></script>
<script type="text/javascript" src="../../script/mui.min.js"></script>
<script type="text/javascript" src="../../script/MD5.js"></script>
<script type="text/javascript" src="../../script/requestTool.js"></script>
<script type="text/javascript" src="../../script/timeStampTool.js"></script>
<script type="text/javascript" src="../../script/v3.1.1/layer.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/public-train.css"/>
<script type="text/javascript" src="../../script/html2canvas.js"></script>
<script type="text/javascript" src="../../script/qrcode.min.js"></script>
<script type="text/javascript" src="../../script/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="../../script/trainShare.js"></script>
<script type="text/javascript" src="../../script/manager/promptManager.js"></script>
<script type="text/javascript">
    var courseArr = new Array();
    var collectioning = false;//收藏中，防止因网络卡顿多次请求
    var currentClassData = null;
    var payId;
    var buyStatus;
    apiready = function () {
        loadData();//加载数据
        // loadCourseList();//加载课程列表
        loadCollectionStatus();//加载评论
        loadSignStatus();
        setupCollectionClick();
        setupQRCode();
        api.addEventListener({
            name: 'aliPayResult'
        }, function (ret, err) {
            console.log("支付结果:" + JSON.stringify(ret));
            if (ret.value.code === "4000") {
                api.closeToWin({
                    name: 'train-det-px'
                });
                loadSignStatus();//刷新课程状态
            }
        });
    };

    function loadSignStatus() {
        buyStatus = api.pageParam.buyStatus;
        var pargam = {
            apply_user_id: $api.getStorage("cfnetppuid"),
            apply_type_id: api.pageParam.train_type == 4 ? 11 : 10,//10:长风班报名  11:实践教学报名
            link_id: api.pageParam.id
        };
        console.log("上传信息：" + JSON.stringify(api.pageParam) + "/////////////////" + JSON.stringify(pargam));
        cfnetppPOST(url_train_info, pargam, false, function (ret, status) {
            if (ret.code === 200) {
                //已报名
                getPayStatus(api.pageParam.id, 111, function (status) {
                    console.log("支付结果:" + status);
                    if (status === PAYSTATUS.PAY_SUCCESS) {
                        buyStatus = 1;
                    } else if (status === PAYSTATUS.PAY_AUDITING) {
                        $("#signup").text("待审核");
                        $("#signup").attr("disabled", true).css("pointer-events", "none");
                    } else if (status === PAYSTATUS.PAY_WAIT) {
                        $("#signup").text("待到账");
                        $("#signup").attr("disabled", true).css("pointer-events", "none");
                    } else {
                        $("#signup").text("待支付");
                        $("#signup").attr("value", "1");
                    }
                    setupBuyStatus();
                })
            } else {
                setupBuyStatus();
            }
        });
    }

    function setupQRCode() {
        var width = $('body').width();
        var imgW = width * (55.7 / 320);
        currentUrl = 'http://cftrain.cfnet.org.cn/home/Trainclass/details?id=' + api.pageParam.id;
        $("#qrcode_img").qrcode({width: imgW, height: imgW, correctLevel: 0, text: currentUrl});
    }

    function setupBuyStatus() {
        if (buyStatus === 1) {
            $('#detbotcont1').hide();
            $('#detbotcont2').show();
        } else {
            $('#detbotcont1').show();
            $('#detbotcont2').hide();
        }
    }

    //设置收藏点击事件
    function setupCollectionClick() {
        $(".bot-sc").on("click", function () {
            if ($(this).hasClass("ysc")) {
                onCollectionClick(2, function (status, message) {
                    if (status == true) {
                        $('.bot-sc').removeClass("ysc");
                        mui.toast("取消收藏成功");
                    } else {
                        mui.toast(message);
                    }
                });
            } else {
                onCollectionClick(1, function (status, message) {
                    if (status == true) {
                        $('.bot-sc').addClass("ysc");
                        mui.toast("收藏成功");
                    } else {
                        mui.toast(message);
                    }
                });
            }
        });
    }

    function loadCollectionStatus() {
        var params = {
            type: 1,
            uid: $api.getStorage('cfnetppuid'),
            typeid: api.pageParam.id,
            status: 1
        };
        // console.log(JSON.stringify(params)+'\n'+url_train_getCollection);
        cfnetppPOST(url_train_getCollection, params, true, function (data, status) {
            if (status == 'success') {
                if (data.code == 200) {
                    var c_status = data.data.status;
                    if (c_status == 1) {
                        $('.bot-sc').addClass("ysc");
                    }
                }
            }
        });
    }

    //点击收藏回调函数
    function onCollectionClick(status, callBack) {
        if (collectioning == true) {
            return;
        }
        var params = {
            type: 1,
            uid: $api.getStorage('cfnetppuid'),
            typeid: api.pageParam.id,
            status: status
        };
        collectioning = true;
        // console.log(JSON.stringify(params)+'\n'+url_train_changeCollection);
        cfnetppPOST(url_train_changeCollection, params, false, function (data, status) {
            collectioning = false;
            if (status == 'success') {
                if (data.code == 200) {
                    if (callBack) {
                        callBack(true, data.message);
                    }
                } else {
                    if (callBack) {
                        callBack(false, data.message);
                    }
                }
            } else {
                if (callBack) {
                    callBack(false, '网络异常，请检查网络');
                }
            }
        });
    }

    function loadCourseList() {
        var params = {
            cid: api.pageParam.id,
            uid: $api.getStorage('cfnetppuid')
        };
        // console.log(JSON.stringify(params)+'\n'+url_train_getRelationCourse);
        cfnetppPOST(url_train_getRelationCourse, params, true, function (data, status) {
            if (status == 'success') {
                if (data.code == 200) {
                    var courses = data.data;
                    if (courses != undefined && courses != null && courses.constructor == Array && courses.length > 0) {
                        courseArr = courses;
                        setupCourseData();
                    }
                }
            }
        });
    }

    function setupCourseData() {
        $('#course_list_div').show();
        $('#course_list_title').show();
        var courseHtml = '';
        for (var i = 0; i < courseArr.length; i++) {
            var courseData = courseArr[i];
            courseHtml += courseCellHtml(i, courseData);
        }
        $('#course_list').html(courseHtml);
        setupCourseCellClick();
    }

    //设置课程按钮点击
    function setupCourseCellClick() {
        // $('.course-cell').unbind('click');
        // $('.course-cell').click(function(){
        // 	var index = $(this).attr('index');
        // 	var courseData = courseArr[parseInt(index)];
        // 	courseData["id"] = courseData.train_course_id;
        // 	api.openWin({useWKWebView:true,
        // 	    name: 'train-det-kc',
        // 	    url: 'train-det-kc.html',
        // 	    pageParam: courseData
        // 	});
        // });
        // $('.buy-course-btn').unbind('click');
        // $('.buy-course-btn').click(function(event){
        // 	event.stopPropagation();
        // 	var index = $(this).attr('index');
        // 	var courseData = courseArr[parseInt(index)];
        // 	api.openWin({useWKWebView:true,
        // 	    name: 'signup-kc',
        // 	    url: 'signup-kc.html',
        // 	    pageParam: courseData
        // 	});
        // });
    }

    function courseCellHtml(index, data) {
        return '<li index="' + index + '" class="course-cell">' +
            '<a href="javascript:;">' +
            '<div class="u-img"><img src="' + data.course_image + '"/></div>' +
            '<div class="u-txt">' +
            '<h3>' + data.course_name + '</h3>' +
            '<p>' + data.course_describe + '</p>' +
            // '<div><p class="marktxt">'+data.teachername+'  '+data.course_period+'课时</p> <span class="pricetxt">￥'+data.course_fee+'</span></div>'+
            '</div>' +
            '</a>' +
            // '<div index="'+index+'" class="buybox buy-course-btn"><a href="javascript:;">我要购买</a></div>'+
            '</li>';
    }

    function loadData() {
        api.showProgress({
            style: 'default',
            animationType: 'fade',
            title: '数据加载中...',
            text: '',
            modal: false
        });
        var params = {
            id: api.pageParam.id
        };
        cfnetppPOST(url_train_getClass, params, true, function (data, status) {
            api.hideProgress();
            if (status == 'success') {
                if (data.code == 200) {
                    var classData = data.data;
                    currentClassData = classData;
                    setupClassData(classData);
                    getOrderInfo();
                }
            }
        });
    }

    //设置页面数据
    function setupClassData(data) {
        $('#class_image').attr('src', data.class_image);
        $('#train_fee').text('￥' + data.train_fee);//价格
        $('#class_name').text(data.class_name);//名称
        $('#apply_time').text('报名时间：' + timeWithStamp6(data.apply_start_time));//报名时间
        $('#train_time').text('培训时间：' + timeWithStamp6(data.train_start_time) + '-' + timeWithStamp6(data.train_end_time));//培训时间
        $('#train_address').text('培训地点：' + data.train_address);//培训地址
        $('#train_brief').text(data.train_brief);//培训简介
        $('#train_mobile').attr('href', 'tel:' + data.train_mobile);
        var train_content = data.train_content;//培训内容
        if (!isNullStr(train_content)) {
            $('#train_content').html(train_content);
            $('#train_content_title').show();
            $('#train_content').show();
        }
        var train_plan = data.train_plan;//培训计划
        if (!isNullStr(train_plan)) {
            $('#train_plan').html(train_plan);
            $('#train_plan_title').show();
            $('#train_plan').show();
        }
        var teachers_describe = data.teachers_describe;//师资介绍
        if (!isNullStr(teachers_describe)) {
            $('#teachers_describe').html(teachers_describe);
            $('#teachers_describe_title').show();
            $('#teachers_describe').show();
        }
        var train_spot = data.train_spot;//培训亮点
        if (!isNullStr(train_spot)) {
            $('#train_spot').html(train_spot);
            $('#train_spot_title').show();
            $('#train_spot').show();
        }
        var train_arrange = data.train_arrange;//培训安排
        if (!isNullStr(train_arrange)) {
            $('#train_arrange').html(train_arrange);
            $('#train_arrange_title').show();
            $('#train_arrange').show();
        }
        var train_tips = data.train_tips;//温馨提示
        if (!isNullStr(train_tips)) {
            $('#train_tips').html(train_tips);
            $('#train_tips_title').show();
            $('#train_tips').show();
        }
    }

    function isNullStr(str) {
        if (str != undefined && str != null && str != '') {
            return false;
        }
        return true;
    }

    function backClick() {
        event.stopPropagation();
        api.closeWin();
    }

    function payClick() {
        console.log($("#signup").val());
        if (currentClassData == null) {
            return;
        }
        if (payId === undefined) {
            toast("培训暂时无法报名");
            return;
        }

        if ($("#signup").attr("value") !== "0") {
            pay(PAY_TYPE.PAY_ALI, payId);
        } else {
            currentClassData.payId = payId;
            var classData = api.pageParam;
            var train_type = classData.train_type;
            //
            // var winpath = 'signup-list1.html';
            if (train_type == 4) {
                // 	winpath = 'signup-list2.html';
                currentClassData["courseArr"] = courseArr;
            }

            api.openWin({useWKWebView:true,
                name: 'signup-train',
                url: 'signup-train.html',
                pageParam: currentClassData
            });
        }
    }

    function onShareClick() {
        $(".shareshade").show();
        $(".sharelay").css("bottom", "0px");
        $("#share_div").show();
        onScreenCapture('current_page', function (status, imgPath) {
            $('#share_img').attr('src', imgPath);
            createShareImage('share_img_div', function (status2, imgPath2) {
                screenCapturePath = imgPath2;
            });
        });
    }

    function onCancelClick() {
        $(".shareshade").hide();
        $(".sharelay").css("bottom", "-100%");
        $("#share_div").hide();
    }

    function getOrderInfo() {
        showPromptDialog();
        var params = {
            link_id: currentClassData.id,
            category_id: 111
        };

        cfnetppPOST(url_getOrderInfo, params, false, function (data, status) {
            hidePromptDialog();
            if (status == 'success') {
                if (data.code == 200) {
                    payId = data.data;
                }
            }
        });
    }
</script>
</html>